<template>
  <div>
    <div class="btn" :class="{'color-red':item.status===1}" v-for="item in pageList" @click="go(item.path)">{{item.name}} - 点击跳转</div>
  </div>
</template>

<script>
  export default {
    name: 'home',
    data(){
      return {
        pageList: [
          {'name': '三会一课', path: 'sanhuiyike', status: 1},
          {'name': '三会一课详情', path: 'sanhuiyikeDetail', status: 1},
          {'name': '党务主页', path: 'partyAffairs', status: 1},
          {'name': '组织生活', path: 'organizationalLife', status: 1},
          {'name': '三会一课列表', path: 'organizationalLifeList', status: 1},
          {'name': '添加组织', path: 'organizationalLifeAdd', status: 1},
          {'name': 'e支部', path: 'eBranch', status: 1},
          {'name': '支部空间', path: 'branchSpace', status: 1},
          {'name': '集中学习', path: 'concentratedLearning', status: 1},
          {'name': '政策文件 - 筛选', path: 'policyDocument', status: 1},
          {'name': '政务文件 - 详情', path: 'governmentDocuments', status: 1},
//          {'name': '政策文件 - 详情 - 附件', path: 'governmentDocumentsDetail'},
          {'name': '换届提醒', path: 'newTermReminder', status: 1},
          {'name': '换届提醒', path: 'newTermReminderDetail', status: 1},
          {'name': '通知公告', path: 'noticeNotice', status: 1},
          {'name': '主页', path: 'home', status: 1},
          {'name': '更多事项', path: 'moreItem'},
          {'name': '红云头条', path: 'redCloudHeadline', status: 1},
          {'name': '红云头条 - 详情', path: 'redCloudNewsDetail', status: 1},
          {'name': '身边好党', path: 'goodPartyMembersAround', status: 1},
          {'name': '需求调查', path: 'demandSurvey'},
          {'name': '需求调查 - 问题反馈', path: 'demandSurveyFeedback', status: 1},
          {'name': '每日一答', path: 'oneAnswerEveryday', status: 1},
          {'name': '我要出题', path: 'problemSetting', status: 1},
          {'name': '一周一记', path: 'recordWeekly', status: 1},
          {'name': '电台', path: 'radioStation', status: 1},
          {'name': '短视频', path: 'shortVideo', status: 1},
          {'name': '长视频', path: 'longVideo', status: 1},
          {'name': '我的视频', path: 'microVideo', status: 1},
          {'name': '干部在线', path: 'cadreOnline', status: 1},
          {'name': '市属党工委平台', path: 'otherPlatform', status: 1},
          {'name': '培训计划', path: 'trainingPlan', status: 1},
          {'name': '培训计划 - 编辑', path: 'trainingPlanEdit', status: 1},
          {'name': '培训计划 - 添加', path: 'trainingPlanAdd', status: 1},
          {'name': '人员选择', path: 'personnelSelection', status: 1},
          {'name': '添加课程表', path: 'classScheduleCard', status: 1},
          {'name': '添加课程详情', path: 'classScheduleCardDetail', status: 1},
          {'name': '统计分析', path: 'statisticalAnalysis'},
          {'name': '学时预警', path: 'classHourWarningAdd', status: 1},
          {'name': '驻村工作', path: 'workVillage', status: 1},
          {'name': '驻村辅导', path: 'tutoringVillage', status: 1},
          {'name': '专题列表', path: 'special', status: 1},
          {'name': '专题详情', path: 'specialDetail', status: 1},
          {'name': '红友圈列表', path: 'redfriendscircle', status: 1},
          {'name': '添加红友', path: 'redfriendsAdd', status: 1},
          {'name': '发布消息', path: 'redfriendsRelease', status: 1},
          {'name': '个人中心', path: 'personalcenter', status: 1},
          {'name': '浏览历史', path: 'browseHistory', status: 1},
          {'name': '编辑浏览历史', path: 'browseHistoryEdit', status: 1},
          {'name': '更换头像', path: 'changeAvatar', status: 1},
          {'name': '积分规则', path: 'integralRule'},
          {'name': '我的活动', path: 'myActivities', status: 1},
          {'name': '我的支部', path: 'myBranch', status: 1},
          {'name': '我的收藏', path: 'myCollection', status: 1},
          {'name': '我的荣誉', path: 'myHonor', status: 1},
          {'name': '上传我的荣誉', path: 'myHonorUpload', status: 1},
          {'name': '我的订阅', path: 'mySubscriptions', status: 1},
          {'name': '积分明细', path: 'pointsDetails'},
          {'name': '系统设置', path: 'setting', status: 1},
          {'name': '个人信息', path: 'userInfo', status: 1},
          {'name': '线上观摩', path: 'onlineObservation', status: 1}
        ]
      }
    },
    methods: {
      go(path){
        this.$router.push({name: path})
      }
    }
  }
</script>

<style scoped>

</style>
